package com.zhaoye.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.zhaoye.entities.CommonResult;

/**
 * @author feng
 * @Date 2021/11/20 21:56
 *  自定义服务降级兜底的方法，避免代码臃肿
 */
public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException exception){
        return new CommonResult(4444,"按客戶自定义,global handlerException----1");
    }

    public static CommonResult handlerException2(BlockException exception){
        return new CommonResult(4444,"按客戶自定义,global handlerException----2");
    }
}
